package com.hbnu.videotag.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hbnu.videotag.mapper.VideoTagMapper;
import com.hbnu.videotag.domain.VideoTag;
import com.hbnu.videotag.service.IVideoTagService;

/**
 * 视频标签多对多Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-28
 */
@Service
public class VideoTagServiceImpl implements IVideoTagService 
{
    @Autowired
    private VideoTagMapper videoTagMapper;

    /**
     * 查询视频标签多对多
     * 
     * @param videoId 视频标签多对多主键
     * @return 视频标签多对多
     */
    @Override
    public VideoTag selectVideoTagByVideoId(Long videoId)
    {
        return videoTagMapper.selectVideoTagByVideoId(videoId);
    }

    /**
     * 查询视频标签多对多列表
     * 
     * @param videoTag 视频标签多对多
     * @return 视频标签多对多
     */
    @Override
    public List<VideoTag> selectVideoTagList(VideoTag videoTag)
    {
        return videoTagMapper.selectVideoTagList(videoTag);
    }

    /**
     * 新增视频标签多对多
     * 
     * @param videoTag 视频标签多对多
     * @return 结果
     */
    @Override
    public int insertVideoTag(VideoTag videoTag)
    {
        return videoTagMapper.insertVideoTag(videoTag);
    }

    /**
     * 修改视频标签多对多
     * 
     * @param videoTag 视频标签多对多
     * @return 结果
     */
    @Override
    public int updateVideoTag(VideoTag videoTag)
    {
        return videoTagMapper.updateVideoTag(videoTag);
    }

    /**
     * 批量删除视频标签多对多
     * 
     * @param videoIds 需要删除的视频标签多对多主键
     * @return 结果
     */
    @Override
    public int deleteVideoTagByVideoIds(Long[] videoIds)
    {
        return videoTagMapper.deleteVideoTagByVideoIds(videoIds);
    }

    /**
     * 删除视频标签多对多信息
     * 
     * @param videoId 视频标签多对多主键
     * @return 结果
     */
    @Override
    public int deleteVideoTagByVideoId(Long videoId)
    {
        return videoTagMapper.deleteVideoTagByVideoId(videoId);
    }
}
